package request

import (
	"time"

	global "github.com/smash-llj/Nexa-server/global"
)

type UserRegisterReq struct {
	global.BaseCaptcha
	Name           string `json:"name" binding:"required" msg:"name必须填写"`
	RepeatPassword string `json:"repeat_password" binding:"required" msg:"重复密码需要填写"`
	Password       string `json:"password" binding:"required,eqfield=RepeatPassword" msg:"两次密码输入不一样"`
}
type UpdateUserInfoReq struct {
	Username  string    `json:"username" `
	Avatar    string    `json:"avatar"`
	Sign      string    `json:"sign"`
	BgImage   string    `json:"bgImage"`
	Birthdate time.Time `json:"birthdate"`
	Address   string    `json:"address"`
	Gender    string    `json:"gender"`
}

type UserLoginReq struct {
	global.BaseCaptcha
	Name     string `json:"name" binding:"required" msg:"name必须填写"`
	Password string `json:"password" binding:"required" msg:"password不能为空"`
}

type UserFriendReq struct {
	UserId   int `json:"userId"  binding:"required" msg:"userId必须填写"`
	FriendId int `json:"friendId" binding:"required" msg:"friendId必须填写"`
}
